ms2  = importdata('d2_ms.0.1.100.2.log');
ms5  = importdata('d2_ms.0.1.100.5.log');
ms10 = importdata('d2_ms.0.1.100.10.log');

h = clf;
subplot(1,2,1)
h_ms2  = decimark(ms2(:,4), ms2(:,2), 5, 's', {'color','r','LineWidth', ...
                    2, 'markersize', 10});

h_ms5  = decimark(ms5(:,4), ms5(:,2), 5, 'd', {'color','b','LineWidth', ...
                    2, 'markersize', 10});
h_ms10 = decimark(ms10(:,4), ms10(:,2), 5, 'o', {'color','k','LineWidth', ...
                    2, 'markersize', 10});
xlabel('Time (seconds)');
ylabel('||A-WH||_F');

subplot(1,2,2)
h_ms2_z  = logdecimark(ms2(:,4), ms2(:,3), 5, 's', {'color','r','LineWidth', ...
                    2, 'markersize', 10});
h_ms5_z  = logdecimark(ms5(:,4), ms5(:,3), 5, 'd', {'color','b','LineWidth', ...
                    2, 'markersize', 10});
h_ms10_z = logdecimark(ms10(:,4), ms10(:,3), 5, 'o', {'color','k','LineWidth', ...
                    2, 'markersize', 10});

%h_ms_z = logdecimark(ms(:,4), ms(:,3), 5, 'd', {'color','b','LineWidth', ...
%                    2});

legend([h_ms2 h_ms5 h_ms10], 'M = 2', 'M = 5', 'M = 10');
xlabel('Time (seconds)');
ylabel('||H-Z||_F');

set(gcf,'NextPlot','add');
axes;
h_title = title(['Regularized NMF: Master/Slave with different M size(A) = ' ...
       '10000 \times 2000 k = 50 \alpha = 0.1 \rho = 100']);
set(gca,'Visible','off');
set(h_title,'Visible','on');

print(h, '-depsc', '-r300', 'ms_2_5_10.eps');